<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/** Home Page **/
class Home extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		$this->load->model("posts");
		$this->load->helper('text');
	}
	
	public function index()
	{
		$value['title']  = "Home";
		$value['news']	= $this->posts->getAllRecords(1,10,'now');
		$value['info']	= $this->posts->getAllRecords(2,5,'now');
		$value['latest']= $this->posts->getAllRecords(1,5,'now');
		$value['latest2']= $this->posts->getAllRecords(2,5,'now');
		$value['content']= "vhome/v-index-home";
		$this->load->view('themes/bdo/index',$value);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */